package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Buildrent entity. @author MyEclipse Persistence Tools
 */

public class Buildrent implements java.io.Serializable {

	// Fields

	private Integer buildrentId;
	private Staff staff;
	private Build build;
	private Company company;
	private Date rentDate;
	private Date dueDate;
	private Float rentPrice;
	private Short paymentCycle;
	private String note;
	private Set buildrentincomes = new HashSet(0);

	// Constructors

	/** default constructor */
	public Buildrent() {
	}

	/** full constructor */
	public Buildrent(Staff staff, Build build, Company company, Date rentDate, Date dueDate, Float rentPrice,
			Short paymentCycle, String note, Set buildrentincomes) {
		this.staff = staff;
		this.build = build;
		this.company = company;
		this.rentDate = rentDate;
		this.dueDate = dueDate;
		this.rentPrice = rentPrice;
		this.paymentCycle = paymentCycle;
		this.note = note;
		this.buildrentincomes = buildrentincomes;
	}

	// Property accessors

	public Integer getBuildrentId() {
		return this.buildrentId;
	}

	public void setBuildrentId(Integer buildrentId) {
		this.buildrentId = buildrentId;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Build getBuild() {
		return this.build;
	}

	public void setBuild(Build build) {
		this.build = build;
	}

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Date getRentDate() {
		return this.rentDate;
	}

	public void setRentDate(Date rentDate) {
		this.rentDate = rentDate;
	}

	public Date getDueDate() {
		return this.dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = dueDate;
	}

	public Float getRentPrice() {
		return this.rentPrice;
	}

	public void setRentPrice(Float rentPrice) {
		this.rentPrice = rentPrice;
	}

	public Short getPaymentCycle() {
		return this.paymentCycle;
	}

	public void setPaymentCycle(Short paymentCycle) {
		this.paymentCycle = paymentCycle;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Set getBuildrentincomes() {
		return this.buildrentincomes;
	}

	public void setBuildrentincomes(Set buildrentincomes) {
		this.buildrentincomes = buildrentincomes;
	}

}